export class StudyPlan {
  constructor (studyPlan) {
    studyPlan = studyPlan || {}
    this.id = studyPlan.id
    this.year = studyPlan.year
    this.month = studyPlan.month
    this.number_of_studies = studyPlan.number_of_studies
    this.status = studyPlan.status
    this.study = {
      id: studyPlan.study.id,
      enhancement: studyPlan.study.enhancement,
      labor_intensity: studyPlan.labor_intensity,
      modality: {
        code: studyPlan.study.modality.code,
        name: studyPlan.study.modality.name,
      }
    }
  }
}
